package com.huiqiao.lesson6.beanConstructor;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

@Component
public class BeanConstrutorByBeanFacotryClass implements FactoryBean {

    // 根据bean名字获取到的是getObject返回的对象
    @Override
    public Object getObject() throws Exception {
        return new BeanFactoryProxyClass();
    }

    @Override
    public Class<?> getObjectType() {
        return BeanFactoryProxyClass.class;
    }
}
